//
//  Qb_FriendTableViewCell.m
//  Cd_Qb
//
//  Created by mac on 2018/3/14.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "Qb_FriendTableViewCell.h"

@interface Qb_FriendTableViewCell()

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ImgLeft;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ImgH;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_ImgW;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_LabelLeft;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_Img01Right;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_Img01H;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_Img01W;


@property (weak, nonatomic) IBOutlet UIImageView *Img;
@property (weak, nonatomic) IBOutlet UILabel *Name;

@end

@implementation Qb_FriendTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self AdaptationApp];
    // Initialization code
}

-(void)loadData:(id)model{
    NSDictionary *md = model;
    self.Img.image = [UIImage imageNamed:md[@"img"]];
    self.Name.text = md[@"name"];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
